<div class="box">
        <!-- box / title -->
        <div class="title">
                <h5>Titip</h5>
                <ul class="links">
                        <!-- <li><a href="<?=base_url().'index.php/consignment/newentrusted'?>">Create Titip</a></li>
                        <li><a href="<?=base_url().'index.php/consignment_list'?>">List Titip</a></li> -->
                </ul>
        </div>
        <!-- end box / title -->
		
		<?php
        $msg = $this->session->flashdata('message');
          if($msg <> "" && $msg == "Data Berhasil dimasukkan"){
				$lastId = substr("0000000" . $lastId, -8);
              echo'<div id="box-messages">
                        <div class="messages">
                                <div id="message-success" class="message message-success">
                                        <div class="image">
                                                <img src="'. base_url() .'file/shell/smooth/resources/images/icons/success.png" alt="Success" height="32" />
                                        </div>
                                        <div class="text">
                                                <h6>'. $msg .'</h6>
						<h6>'. "Nomor Transaksi Anda adalah " . $lastId . "." . '</h6>
                                        </div>
                                        <div class="dismiss">
                                                <a href="#message-success"></a>
                                        </div>
                                </div>
                        </div>
                </div>';
        }
        ?>
		
        <?php
			if (!isset($jenis))
			{
		?>
        <div class="table">
               
                <base href="<?php echo base_url() ?>" />
				
                <!--<link type="text/css" rel="stylesheet" href="css/demo_table.css" />-->
                <div id="ajaxLoadAni">
                    <img src="file/smooth/images/ajax-loader.gif" alt="Ajax Loading Animation" />
                    <span>Loading...</span>
                </div>
                
                        <table id="records">
                            <thead>
                                <tr>
									<th>No</th>
									<th>Date</th>
									<th>Sell in No</th>
									<th>Sales Name</th>
									<th>Actions</th>
                                </tr>
                            </thead>
                            <tbody></tbody>
                        </table>
                
                <?=$this->load->view("konsinyasi/grid-titip");?>
                
        </div>
        <?php
			}
			else
			{
		?>
        <div class="tablee">
                
                <?php
                if($jenis == "create"){
                        $this->load->view('konsinyasi/f-titip-create');
                }
				// elseif($jenis == "chart"){
                        // echo'<iframe src="'.base_url().'index.php/territory/territory_iframe/chart" width=100% height=600px>';
                // }
                ?>
                
                
        </div>
		<?php
			}
		?>
</div>